import os


class Config:
    # 用于Flask会话和其他安全相关的操作
    SECRET_KEY = os.environ.get('SECRET_KEY', 'a_hard_to_guess_string')

    # 使用pymysql作为MySQL驱动
    SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL', 'mysql+pymysql://yzh:123456@47.104.158.179:3306'
                                                             '/classpair_db')

    # 关闭Flask-SQLAlchemy的事件系统
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    UPLOAD_FOLDER = 'uploads/assignment'
    UPLOAD_FOLDER2 = 'uploads/submissions'
